//引入库
import type { Directive } from "vue";
import his from "highlight.js";

export const highlight: Directive = {
  updated(el) {
    const blocks = el.querySelectorAll(" pre code");
    blocks.forEach(() => {
      his.highlightAll();
    });
  }
};
